<template>
  <!-- 首页功能快捷入口 Grid宫格-->
  <van-grid>
    <van-grid-item v-for="(item,i) in homeItems" :key="i" :icon="item.img" :text="item.title"
                   :to="{name:item.routeName}"/>
  </van-grid>
</template>

<script>
export default {
  name: 'homeEnter',

  data() {
    return {
      //首页快捷功能入口
      homeItems: [{
        title: "新闻资讯",
        routeName: "working",
        img: require("@/assets/images/menu1.png"),
      },
        {
          title: "图片分享",
          routeName: "working",
          img: require("@/assets/images/menu2.png"),
        },
        {
          title: "商品购买",
          routeName: "goodsList",
          img: require("@/assets/images/menu3.png"),
        },
        {
          title: "留言反馈",
          routeName: "working",
          img: require("@/assets/images/menu4.png"),
        },
        {
          title: "视频专区",
          routeName: "working",
          img: require("@/assets/images/menu5.png"),
        },
        {
          title: "联系我们",
          routeName: "working",
          img: require("@/assets/images/menu6.png"),
        },
      ],
    }
  },
}
</script>
<style scoped>
.van-grid {
  background-color: white;
}
</style>
